package com.sora.sora.security.authorise.mapper;

import com.sora.sora.security.authorise.model.entity.Resources;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Set;

@Mapper
public interface ResourcesMapper {

    int delResoucesByType(int type);

    int addResources(@Param("resources") Collection<Resources> list);

    List<Resources> queryResourcesByUserId(int id);

    Set<Integer> queryIdByUserId(int id);

    List<Resources> queryPageResourcesByUserId(int uid);

}
